package com.echoplots.junit.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.echoplots.junit.entity.User;
@Repository("userService")
public class UserServiceImpl implements UserService {

	@Override
	public User findByName(String userName) {
		 List<User> userList = new ArrayList<User>();
		for (int i = 0; i < 5; i++) {
			userList.add(new User("用户"+i));
		}
		return userList.get(0);
	}

	@Override
	public void saveUser(User user) {
		
	}

}
